<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/7
 * Time: 20:29
 */
namespace Admin\Controller;
use Base\Controller\CurdController;
class InspectionContentChangeController extends CurdController{
    public function __construct()
    {
        parent::__construct(true, true);

    }
    protected function getAll()
    {
		$where['status']=1;
 if($_REQUEST['indexid']){
            $where['indexid']=I('get.indexid');
        }
        if(I('get.typeid')){
            $where['typeid']=I('get.typeid');
        }

        if($_REQUEST['selects']){
            $limit=$_REQUEST['selects'];
        }else{
            $limit=20;
        }
        $data = $this->model->pageToView($limit, true,$where);
        $this->assign("page", $data['page']);
        $this->assign("list", $data['list']);

    }
}